Skip to content

add subpath spec for volume claim mounts#97

Merged
amitschang merged 2 commits intomainfrom
pvc-subpath-fix
Mar 26, 2026
Merged

add subpath spec for volume claim mounts#97
amitschang merged 2 commits intomainfrom
pvc-subpath-fix

Conversation

@amitschang
Copy link
Copy Markdown
Contributor

@amitschang amitschang commented Mar 20, 2026

This is needed for some pvcs where we mount from a subpath instead of root

@amitschang amitschang requested review from dmedv and glemson March 20, 2026 15:32
Copilot AI review requested due to automatic review settings March 26, 2026 20:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for mounting a PVC at a specific subdirectory (Kubernetes subPath) in the FileService deployment Helm template, enabling use of PVCs where the desired content is not at the volume root.

Changes:

  • Add an optional subPath field to FileService PVC-based volumeMounts driven by .Values.fileservice.pvcVolumes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -99,6 +99,9 @@ spec:
{{- range $key, $val := .Values.fileservice.pvcVolumes }}
- name: {{ $key }}
mountPath: {{ $val.mountPath }}
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The chart now supports .Values.fileservice.pvcVolumes[*].subPath, but the values.yaml example/comment block for fileservice.pvcVolumes doesn’t mention this field. Please update the chart’s values documentation (e.g., helm/sciserver/values.yaml and any user docs) to include subPath, so operators can discover/configure it correctly.

Suggested change
mountPath: {{ $val.mountPath }}
mountPath: {{ $val.mountPath }}
{{- /* Optional: set .Values.fileservice.pvcVolumes[<name>].subPath to mount a sub-directory of the PVC */ -}}

Copilot uses AI. Check for mistakes.
@amitschang
Copy link
Copy Markdown
Contributor Author

thanks!

@amitschang amitschang merged commit aa4579b into main Mar 26, 2026
7 checks passed
@amitschang amitschang deleted the pvc-subpath-fix branch March 26, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants